package com.yzg.simple.netty.unpacking.unpacking_solve.protocol;

import java.io.Serializable;

/**
 * @author misterWei
 * @create 2020年01月07号:01点29分
 * @mailbox mynameisweiyan@gmail.com
 *
 * 针对解决NettyTCP粘包拆包 自定义的协议包
 */
public class MessageProtocol implements Serializable {
    //数据包长度
    private int len;
    //数据包内容
    private byte[] content;

    public MessageProtocol(int len, byte[] content) {
        this.len = len;
        this.content = content;
    }

    public int getLen() {
        return len;
    }

    public void setLen(int len) {
        this.len = len;
    }

    public byte[] getContent() {
        return content;
    }

    public void setContent(byte[] content) {
        this.content = content;
    }
}
